<?php
	error_reporting(E_ALL);
	session_start();
	
	$site_path = realpath(dirname(__FILE__));
	define('__SITE_PATH', $site_path);
	
	require_once(__SITE_PATH.'/classes/Configuration.php');
	
	$params = ParameterManager::getParams();
	
	try {
		Dispatcher::getInstance()->dispatch($params);
	} catch (Exception $e) { echo 'Error: '.$e->getMessage(). "\n"; }